package com.oot2d.event;

import com.oot2d.entity.NPC;

public class NPCMoveAction implements Action {
    private float x, y, v;
    private NPC npc;

    public NPCMoveAction(NPC n, float mx, float my, float mv)
    {
        npc = n;
        x = mx;
        y = my;
        v = mv;
    }

    public void exec()
    {
        npc.moveTo(x, y, v);
    }

    public boolean isDone()
    {
        return (!npc.isMoving());
    }
}
